Correct.
Let X be the missing number and Y equal the sum of the rest of the numbers.
If the average of 6 numbers is 30 then the sum of all 6 numbers is 180 which can be represented as:
X + Y = 180
Now if X is subtracted from the lot and the average of the rest of the numbers goes down 3, then the average of the rest of the 5 numbers is 27 and the total of the sum of the rest of the numbers is:
27 * 5 = 135
Now the sum of the rest of the numbers is equal to Y, so Y = 135.
Therefore:
X + Y = 180 would give us
X + 135 = 180
and subtracting 135 from both sides would give us
X + 135 - 135 = 180 - 135
which is equal to
X = 180 -135 = 45